﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_GetTaskStatus]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_GetTaskStatus];
GO
CREATE PROCEDURE [dbo].[sproc_GetTaskStatus]
    @TaskID int

AS 
select distinct IsConfirm,Username from uds_schedule where TaskID=@TaskID